<template>
  <div id="footer">
    <div>
      <img src="@/assets/binbing/homePageImg/footer01.png" />
      <p style="color: #bf0000">首页</p>
    </div>
    <div>
      <router-link to="/fenlei/fenlei2">
      <img src="@/assets/binbing/homePageImg/footer02.png" />
      <p>分类</p>
      </router-link>
    </div>
    <div @click="turnseaech">
      <img src="@/assets/binbing/homePageImg/footer03.png" />
      <p>发现</p>
    </div>
    <div>
      <img src="@/assets/binbing/homePageImg/footer04.png" />
      <p>购物车</p>
    </div>
    <div>
      <router-link to="MinePage">
        <img src="@/assets/binbing/homePageImg/footer05.png" />
        <p>我的</p>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: "FooterNav",
  methods: {
    turnseaech(){
      this.$router.push("/faxian")
    }
  },
};

</script>

<style scoped>
#footer {
  width: 100%;
  height: 0.56rem;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
}

#footer div {
  height: 0.56rem;
  width: auto;
  padding: 0.08rem 0.04rem 0 0.04rem;
  flex: 1;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

#footer div img {
  width: 0.24rem;
  height: 0.24rem;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

#footer div p {
  font-size: 0.1rem;
  line-height: 0.14rem;
}
</style>